import Vue from 'vue'
import Router from 'vue-router'

import Toast from 'components/Toast'
import Swipe from 'components/Swipe'
import MyTabContainer from 'components/TabContainer'
import MyTabbar from 'components/MyTabbar'
import MyLoadMore from 'components/LoadMore'
import TestVue from 'components/TestVue'
import HomeIndex from 'view/home/Index.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HomeIndex',
      component: HomeIndex
    },
    {
      path: '/ic',
      name: 'Toast',
      component: Toast
    },
    {
      path: '/swipe',
      name: 'Swipe',
      component: Swipe
    },
    {
      path: '/tab',
      name: 'MyTabContainer',
      component: MyTabContainer
    },
    {
      path: '/mytab',
      name: 'MyTabbar',
      component: MyTabbar
    },
    {
      path: '/pull',
      name: 'MyLoadMore',
      component: MyLoadMore
    },
    {
      path: '/testVue',
      name: 'TestVue',
      component: TestVue
    },
  ]
})
